import { createRouter, createWebHistory } from 'vue-router'
import loginComponent from './components/LoginComponent.vue'
import register from './components/Register.vue'
import selectGrid from './components/SelectGrid.vue'
import selectAqi from './components/SelectAqi.vue'
import feedbackList from './components/FeedbackList.vue'
import information from './components/Information.vue'
import informationModify from './components/InformationModify.vue'
import listInformation from './components/ListInformation.vue'


const routes = [
    {
        path:'/',
        name: 'login',
        component: loginComponent
    },
    {
        path:'/register',
        name: 'register',
        component: register
    },
     {
        path:'/selectGrid',
        name: 'selectGrid',
        component: selectGrid
    },
    {
        path:'/selectAqi',
        name: 'selectAqi',
        component: selectAqi
    },
    {
        path:'/feedbackList',
        name: 'feedbackList',
        component: feedbackList
    },
    {
        path:'/information',
        name: 'information',
        component: information
    },
    {
        path:'/informationModify',
        name: 'informationModify',
        component: informationModify
    },
    {
        path:'/listInformation',
        name: 'listInformation',
        component: listInformation
    }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router